From: Carlos Garnacho Date: Wed, 19 Dec 2018 12:26:54 +0000 (+0100) Subject: appDisplay: Use GAppInfo list from ShellAppSystem X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~897^2^2~119 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=794a0568192dfc6581117dd5eceb5b0cec54d68c;p=gnome-shell.git appDisplay: Use GAppInfo list from ShellAppSystem It is now cached there, so the number of g_app_info_get_all() calls is reduced to one per change. --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 3a7c74897..b8865cf2c 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -492,7 +492,7 @@ var AllView = class AllView extends BaseAppView { } _loadApps() { - this._appInfoList = Gio.AppInfo.get_all().filter(appInfo => { + this._appInfoList = Shell.AppSystem.get_default().get_installed().filter(appInfo => { try { let id = appInfo.get_id(); // catch invalid file encodings } catch(e) {